package cn.gglol.code.generator.mapper;

import cn.gglol.code.generator.domain.JvvTable;
import org.apache.ibatis.annotations.Select;

public interface JvvTableMapper {

    /**
     * 查询表名称业务信息
     *
     * @param tableName 表名称
     * @return 业务信息
     */
    @Select("select table_name tableName, table_comment tableComment, create_time createTime, update_time updateTime " +
            "from information_schema.tables " +
            "where lower(table_schema) = (select database()) " +
            "and table_name = #{tableName}")
    JvvTable selectTableByName(String tableName);
}